import { LogLevel } from '@nestjs/common';

export const getLogLevels = (): LogLevel[] => {
  const env = process.env.NODE_ENV || 'development';
  
  switch (env) {
    case 'production':
      return ['error', 'warn', 'log'];
    case 'test':
      return ['error', 'warn'];
    case 'development':
    default:
      return ['error', 'warn', 'log', 'debug', 'verbose'];
  }
};

export const getLoggingConfig = () => ({
  level: process.env.LOG_LEVEL || 'debug',
  timestamp: true,
  context: true,
  colors: process.env.NODE_ENV !== 'production',
  prettyPrint: process.env.NODE_ENV === 'development',
});

